package com.aos.erp.message.model;

import com.aos.erp.message.enums.PushType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ApiModel("消息模板推送方式")
@TableName("t_mt_push_type")
public class MTPushType implements Serializable {

    @ApiModelProperty(value="推送方式记录ID",hidden=true)
    @TableId(value = "id", type = IdType.INPUT)
    private long id = 0;
    @ApiModelProperty(value="消息模板ID",hidden=true)
    @TableField("mt_id")
    private long mtId = 0;
    @ApiModelProperty(value="推送方式(app:APP；wx_public:微信公众号；wx_applet:微信小程序；sms:短信)",hidden=true)
    @TableField("push_type")
    private PushType pushType=PushType.app;   // 推送方式

    public String getPushTypeName() {
        return pushType.getDesc();
    }
}
